package com.meteor.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meteor.framework.common.base.AutoEntity;
import com.meteor.framework.common.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author lynn
 * @date 2024/2/28
 *
 * @Description:房屋绑定管理
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("pf_owner_room")
public class OwnerRoom extends AutoEntity<OwnerRoom> {


    @Schema(description= "小区id")
    private String communityId;


    @Schema(description= "楼栋id")
    private String buildingId;


    @Schema(description= "单元id")
    private String unitId;

    @Schema(description= "房间id")
    private String roomId;


    @Schema(description= "业主id")
    private String ownerId;


    @Schema(description= "业主类型")
    private String ownerType;


    @Schema(description= "绑定状态 0=审核中,1=绑定,2=审核失败")
    private Integer roomStatus;


    @Schema(description = "组织id")
    private String orgId;

    @Schema(description = "审核时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date auditTime;

    @Schema(description = "审批意见")
    private String auditOpinion;

}
